package day03;

public class Days {
    public static void main(String[] args) {
        int year = 2012;
        int mouth=2;
        int Mixdays=1;
        switch (mouth){
            case 1:
            case 3:
            case 5:
            case 7:
            case 8:
            case 10:
            case 12:
         Mixdays=31;
         break;
            case 2:
            Mixdays=(year%400==0)||(year%4==0&&year%100!=0)?29:28;
            break;
           default:
               Mixdays=30;





        }
        System.out.println(year+"年"+mouth+"月"+ "的最大天数是"+Mixdays);
    }

}